package com.wash.car.web.controller.admin;

import com.github.pagehelper.PageInfo;
import com.pmo.boot.common.api.DefaultResult;
import com.wash.car.biz.VipDetailServer;
import com.wash.car.dao.model.VipDetailPageModel;
import com.wash.car.dao.model.VipDetailPageWhereModel;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = {"VIP管理"})
@RestController
@RequestMapping(path = "/admin/vip/detail")
public class AdminVipDetailController {

    @Autowired
    private VipDetailServer vipDetailServer;


    @ApiOperation(value = "操作记录")
    @GetMapping(path = "page")
    public DefaultResult<PageInfo<VipDetailPageModel>> page(VipDetailPageWhereModel model) {
        PageInfo<VipDetailPageModel> pageInfo = vipDetailServer.page(model);
        return DefaultResult.success(pageInfo);
    }

}
